package cn.tedu._05article.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UserArticleParam {
    @Schema(description = "文章标题", required = true)
    @NotBlank(message = "文章标题不能为空")
    private String  title;
    @Schema(description = "文章内容", required = true)
    @Size(min = 10, max = 500, message = "文章内容长度必须在10-500之间")
    private String content;
}
